package com.qr;

import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import cn.krui.helper.filter.ITokenFilterSetting;

/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/11 13:01:35
 * 1、排除的url> 2、只验证token的url> 3、验证权限的url
 */
@Component
public class TokenFilterSettingWmyh implements ITokenFilterSetting {

/**
 * 排除的url
 */
    @Override
    public List<String> EXCEPTION_URI() {
        List<String> list = new ArrayList<>();
        list.add("/");
        list.add("/favicon.ico");
        list.add("*/wmyh/actuator/*");
        list.add("*/swagger-ui.html*");
        list.add("*/v2/api-docs");
        list.add("*/swagger-resources*");
        list.add("*/webjars/*");
        list.add("*/wmyh/system_check/*");
        list.add("*/wmyhApi/jbr_base_area/*");
        list.add("*/wmyhApi/jbr_user_address/*");
        list.add("*/wmyhApi/jbr_user_amount_list/*");
        list.add("*/wmyhApi/jbr_user_amount_recharge/*");
        list.add("*/wmyhApi/jbr_user_authentication_info/*");
        list.add("*/wmyhApi/jbr_user_bank_card/*");
        list.add("*/wmyhApi/jbr_user_browse_products/*");
        list.add("*/wmyhApi/jbr_user_class/*");
        list.add("*/wmyhApi/jbr_user_classification/*");
        list.add("*/wmyhApi/jbr_user_comment/*");
        list.add("*/wmyhApi/jbr_user_comment_click/*");
        list.add("*/wmyhApi/jbr_user_commission/*");
        list.add("*/wmyhApi/jbr_user_commission_list/*");
        list.add("*/wmyhApi/jbr_user_extraction_apply/*");
        list.add("*/wmyhApi/jbr_user_favorite/*");
        list.add("*/wmyhApi/jbr_user_grade/*");
        list.add("*/wmyhApi/jbr_user_grade_recharge/*");
        list.add("*/wmyhApi/jbr_user_sales_records/*");
        list.add("*/wmyhApi/jbr_user_sales_records_detail/*");
        list.add("*/wmyhApi/jbr_user_score_list/*");
        list.add("*/wmyhApi/jbr_user_signin/*");
        list.add("*/wmyhApi/jbr_users/*");
        return list;
    }

/**
 * 只验证token的地址
 */
    @Override
    public List<String> EXCEPTION_TOKEN_URI() {
        List<String> list = new ArrayList<>();

        return list;
    }
    
}